import { request } from '@/utils/request'

// 查询车主列表
export function listCarOwner(query) {
  return request({
    url: '/system/carOwner/list',
    method: 'get',
    params: query
  })
}

// 查询车主详细
export function getCarOwner(id) {
  return request({
    url: '/system/carOwner/' + id,
    method: 'get'
  })
}

// 新增车主
export function addCarOwner(data) {
  return request({
    url: '/system/carOwner',
    method: 'post',
    data: data
  })
}

// 修改车主
export function updateCarOwner(data) {
  return request({
    url: '/system/carOwner',
    method: 'put',
    data: data
  })
}

// 删除车主
export function delCarOwner(id) {
  return request({
    url: '/system/carOwner/' + id,
    method: 'delete'
  })
}
